package com._21cn.cms.template.service;

import com._21cn.framework.base.db.BaseDao;
import com._21cn.framework.base.service.impl.BaseServiceImpl;

import com._21cn.cms.template.dao.TemplateDao;
import com._21cn.cms.template.entity.Template;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("templateService")
public class TemplateService extends BaseServiceImpl<Template> {
	
    @Autowired
    private TemplateDao templateDao;

    @Override
    protected BaseDao<Template> getBaseDao() {
        return templateDao;
    }

}